from selenium import webdriver

wd = webdriver.Chrome()
wd.get("http://172.16.60.164:9000")
import csv

import requests

# url = "http://172.16.60.164/competition/info?_id=6155628ea7152d493209f737"
# headers = {"Cookie": "TrainingPlatform-sid=s%3ApZq2UuAY8BsRFyRkh1idGh0oyI41oLk7.lpCpjnJ62sCfGRyyauQ1eqpIsRp2dhGNs5pmMCJKw0M; local-state={%22_id%22:%225f02f2349fd8b6fa72e727cf%22%2C%22username%22:%22admin%22%2C%22email%22:%22admin@forensix.cn%22%2C%22roles%22:[%22admin%22]%2C%22avatar%22:%22http://172.16.60.160:5700/avatars/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20210203094423.5fe5a2e5996aa5000d5f94ea.8335.avatar.png%22%2C%22department%22:%22%E5%85%AC%E5%AE%89%E9%83%A8%22%2C%22avatars%22:[]%2C%22isReset%22:false%2C%22isModifyPersonal%22:true}; XSRF-TOKEN=7IGuK1Ha-CTodcxilaxhtWuFx8ZtYeLIrVmQ"}
# response = requests.get(url, headers=headers).json()
# print(response)
#
# with open(r"C:\Users\JYJ\Desktop\电话.csv", "w+", newline="") as a:
#     writer = csv.writer(a)
#
#     for i in range(0, 223):
#         print(i)
#         x = response["teams"][i]["code"]
#         writer.writerow([x])